package com.ruoyi.resumes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Objects;

/**
 * 简历管理对象 resumes
 *
 * @author ruoyi
 * @date 2024-11-02
 */
public class Resumes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 简历ID */
    /*@Excel(name = "简历ID")*/
    private Long id;

    /** 用户ID */
    /*@Excel(name = "用户ID")*/
    private Long userId;

    /** 教育背景 */
    @Excel(name = "教育背景")
    private String education;

    /** 工作经验 */
    @Excel(name = "工作经验")
    private String experience;

    /** 技能 */
    @Excel(name = "技能")
    private String skills;


    /** 文件路径 */
    @Excel(name="文件路径")
    private String fileUrl;

    private String nickName; // 对应数据库的 nick_name 字段

    // getter 和 setter 方法
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setEducation(String education)
    {
        this.education = education;
    }

    public String getEducation()
    {
        return education;
    }
    public void setExperience(String experience)
    {
        this.experience = experience;
    }

    public String getExperience()
    {
        return experience;
    }
    public void setSkills(String skills)
    {
        this.skills = skills;
    }

    public String getSkills()
    {
        return skills;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Override
    public String toString() {
        return "Resumes{" +
                "id=" + id +
                ", userId=" + userId +
                ", education='" + education + '\'' +
                ", experience='" + experience + '\'' +
                ", skills='" + skills + '\'' +
                ", fileUrl='" + fileUrl + '\'' +
                ", nickName='" + nickName + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Resumes resumes = (Resumes) o;
        return Objects.equals(id, resumes.id) && Objects.equals(userId, resumes.userId) && Objects.equals(education, resumes.education) && Objects.equals(experience, resumes.experience) && Objects.equals(skills, resumes.skills) && Objects.equals(fileUrl, resumes.fileUrl) && Objects.equals(nickName, resumes.nickName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, userId, education, experience, skills, fileUrl, nickName);
    }
}
